package cn.baage.campus.model.vo;

import cn.baage.campus.model.po.Comment;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Description: 评论返回VO
 * @Author: 八阿哥
 * @url: baage.cn
 * @Version: 1.0
 **/
@Data
@ApiModel(value = "评论返回VO")
public class CommentResVO {

    @ApiModelProperty(value = "评论ID")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "帖子ID")
    private String postingId;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "点赞数")
    private Integer likeNum;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private String avatarUrl;

    @ApiModelProperty(value = "回复目标昵称")
    private String replyNickName;

    @ApiModelProperty(value = "评论图片")
    private List<String> imgList;

    @ApiModelProperty(value = "显示时间")
    private String timeShow;

    @ApiModelProperty(value = "子评论")
    List<CommentResVO> childCommentList;

}
